package com.chkj.fbook.business.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import java.util.List;


/**
 * 桌位/座位管理
 * 
 * @author shh_he
 * @email 980027164@qq.com
 * @date 2023-10-02 21:43:17
 */
public class SeatDO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//主键ID
	private String id;

	//桌位/座位编号，xx号
	private Integer num;
	//桌位/座位名称
	private String name;
	//所属门店/房间ID
	private String roomId;
	//所属门店/房间（名称）
	private String roomName;
	//创建时间
	private Date createTime;
	//更新时间
	private Date updateTime;
	//上架下架  1：上架   0：下架
	private Integer state;
	//下架开始时间
	private Date lowerShelfTime = getDefaultDate();

	@JsonIgnore
	public static Date getDefaultDate() {
		Calendar c = Calendar.getInstance();
		c.add(Calendar.DATE, 100);
		return c.getTime();
	}

	/**
	 * 设置：主键ID
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取：主键ID
	 */
	public String getId() {
		return id;
	}
	/**
	 * 设置：桌位/座位编号，xx号
	 */
	public void setNum(Integer num) {
		this.num = num;
	}
	/**
	 * 获取：桌位/座位编号，xx号
	 */
	public Integer getNum() {
		return num;
	}
	/**
	 * 设置：桌位/座位名称
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：桌位/座位名称
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：所属门店/房间ID
	 */
	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}
	/**
	 * 获取：所属门店/房间ID
	 */
	public String getRoomId() {
		return roomId;
	}
	/**
	 * 设置：所属门店/房间（名称）
	 */
	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}
	/**
	 * 获取：所属门店/房间（名称）
	 */
	public String getRoomName() {
		return roomName;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	/**
	 * 获取：更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}

	public Date getLowerShelfTime() {
		return lowerShelfTime;
	}

	public void setLowerShelfTime(Date lowerShelfTime) {
		this.lowerShelfTime = lowerShelfTime;
	}
}
